﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using Resto.CostControl.Core.Models;

namespace Resto.CostControl.Core
{
    public class Dish : BaseModel
    {
        public Dish()
        {
            this.Items = new List<DishMaterial>();
        }

        public string Id { get; set; }

        [Display(Name = "编号")]
        public string Code { get; set; }

        [Display(Name = "名称")]
        public string Name { get; set; }

        [Display(Name = "分类")]
        public string Category { get; set; }

        [Display(Name = "主料大类")]
        public string MainMaterialType { get; set; }

        [Display(Name = "成本价格")]
        public decimal Cost { get; set; }

        [Display(Name = "销售价格")]
        public decimal Price { get; set; }

        [Display(Name = "烹调方式")]
        public string CookType { get; set; }

        [Display(Name = "备注")]
        public string Remark { get; set; }

        [Display(Name = "原材料")]
        public virtual ICollection<DishMaterial> Items { get; set; }
    }
}
